package gui.transformers;

import aOrganizar.Itinerario;

import com.uqbar.commons.StringUtils;
import com.uqbar.commons.collections.Transformer;

public class AsientoPrecioTransformer implements Transformer<Itinerario,String> {

	@Override
	public String transform(Itinerario itinerario) {
		String precio = itinerario.getPrecio().toString();

		return "$ "+precio.substring(0,precio.indexOf(".")+3);
	}


}
